
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <title>指标自定义属性 · GitBook</title>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.0.0">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="explain-event.html" />
    
    
    <link rel="prev" href="explain-property1.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    平台概念介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="plugin-intro.html">
            
                <a href="plugin-intro.html">
            
                    
                    指标开发简介
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="plugin-file.html">
            
                <a href="plugin-file.html">
            
                    
                    插件目录结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="plugin-conf.html">
            
                <a href="plugin-conf.html">
            
                    
                    插件配置文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="plugin-review.html">
            
                <a href="plugin-review.html">
            
                    
                    插件开发说明
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="explain-intro.html">
            
                <a href="explain-intro.html">
            
                    
                    指标开发讲解
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="explain-bootstrap.html">
            
                <a href="explain-bootstrap.html">
            
                    
                    指标核心逻辑
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="explain-property1.html">
            
                <a href="explain-property1.html">
            
                    
                    指标通用属性
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.3" data-path="explain-property2.html">
            
                <a href="explain-property2.html">
            
                    
                    指标自定义属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="explain-event.html">
            
                <a href="explain-event.html">
            
                    
                    指标钻取事件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="explain-summary.html">
            
                <a href="explain-summary.html">
            
                    
                    指标开发总结
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >指标自定义属性</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x6307;&#x6807;&#x81EA;&#x5B9A;&#x4E49;&#x5C5E;&#x6027;">&#x6307;&#x6807;&#x81EA;&#x5B9A;&#x4E49;&#x5C5E;&#x6027;</h1>
<hr>
<p>&#x6307;&#x6807;&#x81EA;&#x5B9A;&#x4E49;&#x5C5E;&#x6027;&#x7F16;&#x8F91;&#x5668;&#x662F;&#x5E73;&#x53F0;&#x63D0;&#x4F9B;&#x8BBE;&#x8BA1;&#x6A21;&#x5F0F;&#x4E0B;&#x6307;&#x6807;&#x5C5E;&#x6027;&#x7F16;&#x8F91;&#x7684;&#x7684;&#x53E6;&#x4E00;&#x79CD;&#x5B9E;&#x73B0;&#x65B9;&#x5F0F;&#xFF0C;&#x76F8;&#x5BF9;&#x4E0E;&#x901A;&#x7528;&#x5C5E;&#x6027;&#x65B9;&#x5F0F;&#x66F4;&#x4E3A;&#x7075;&#x6D3B;&#xFF0C;&#x4F46;&#x76F8;&#x5BF9;&#x590D;&#x6742;&#x3002;&#x4E00;&#x822C;&#x662F;&#x65E0;&#x6CD5;&#x57FA;&#x4E8E;&#x901A;&#x7528;&#x5C5E;&#x6027;&#x65B9;&#x5F0F;&#x5B9E;&#x73B0;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#x7684;&#x5907;&#x9009;&#x65B9;&#x6848;&#x3002;</p>
<p>&#x81EA;&#x5B9A;&#x4E49;&#x5C5E;&#x6027;&#x7F16;&#x8F91;&#x5668;&#x7684;&#x5B9E;&#x73B0;&#xFF0C;&#x9700;&#x8981;&#x6EE1;&#x8DB3;&#x5982;&#x4E0B;&#x8981;&#x6C42;&#xFF1A;</p>
<ul>
<li><strong>&#x63D2;&#x4EF6;&#x6E05;&#x5355;&#x6587;&#x4EF6;</strong> &#x4E2D;&#x7684;editor<em>*</em>&#x4E09;&#x4E2A;&#x76F8;&#x5173;&#x5C5E;&#x6027;&#x63CF;&#x8FF0;&#x9700;&#x6307;&#x5B9A;&#x6709;&#x6548;&#x503C;&#x3002;<ul>
<li>editorJs&#xFF1A;&#x63D2;&#x4EF6;&#x7684;&#x81EA;&#x5B9A;&#x4E49;&#x7F16;&#x8F91;&#x5668;javascript&#x6587;&#x4EF6;&#x3002;</li>
<li>editorTpl&#xFF1A;&#x63D2;&#x4EF6;&#x7684;&#x81EA;&#x5B9A;&#x4E49;&#x7F16;&#x8F91;&#x5668;html&#x6A21;&#x677F;&#x6587;&#x4EF6;&#x3002;</li>
<li>editorCss&#xFF1A;&#x63D2;&#x4EF6;&#x81EA;&#x5B9A;&#x4E49;&#x7F16;&#x8F91;&#x5668;css&#x6837;&#x5F0F;&#x6587;&#x4EF6;&#x3002;</li>
</ul>
</li>
<li><code>editorJs</code> &#x7684;&#x4EE3;&#x7801;&#x683C;&#x5F0F;&#x8981;&#x6C42;&#x4E3A;&#x91C7;&#x7528;requireJs + angularJs&#x7684;&#x4EE3;&#x7801;&#x5B9E;&#x73B0;&#x65B9;&#x5F0F;&#xFF0C;&#x4E3B;&#x8981;&#x903B;&#x8F91;&#x662F;&#x901A;&#x8FC7;&#x57FA;&#x4E8E;angularJs&#x7684;&#x6570;&#x636E;&#x7ED1;&#x5B9A;&#x65B9;&#x5F0F;&#x5BF9;&#x5C5E;&#x6027;&#x8FDB;&#x884C;&#x8BBE;&#x7F6E;&#x3002;</li>
<li>&#x7F16;&#x8F91;&#x5668;&#x53EF;&#x7528;&#x5BF9;&#x8C61;&#x53CA;&#x4E8B;&#x4EF6;&#x5982;&#x4E0B;&#xFF1A;<ul>
<li>$scope.indexPlugin &#x6307;&#x6807;&#x63A7;&#x4EF6;&#x5B9E;&#x4F8B;</li>
<li>$scope.bindingOfIndex &#x6307;&#x6807;&#x7ED1;&#x5B9A;&#x6570;&#x636E;&#xFF0C;[]&#x7C7B;&#x578B;&#xFF0C;&#x5BF9;&#x5E94;&#x6307;&#x6807;&#x53C2;&#x6570;&#x7684;Binding</li>
<li>$scope.eventsOfIndex &#x6307;&#x6807;&#x4E8B;&#x4EF6;&#x5BF9;&#x8C61;&#xFF0C;[]&#x7C7B;&#x578B;&#xFF0C;&#x5BF9;&#x5E94;&#x6307;&#x6807;&#x53C2;&#x6570;&#x7684;Events</li>
<li>$scope.optionOfIndex &#x6307;&#x6807;&#x914D;&#x7F6E;&#x53C2;&#x6570;&#xFF0C;{}&#x7C7B;&#x578B;&#xFF0C;&#x5BF9;&#x5E94;&#x6307;&#x6807;&#x53C2;&#x6570;&#x7684;Extend</li>
<li>$scope.extendOfIndex &#x6307;&#x6807;&#x5C5E;&#x6027;&#x6269;&#x5C55;&#xFF0C;{}&#x7C7B;&#x578B;&#xFF0C;&#x5BF9;&#x5E94;&#x6307;&#x6807;&#x53C2;&#x6570;&#x7684;Option</li>
<li>$scope.bindPivotEvent &#x94BB;&#x53D6;&#x4E8B;&#x4EF6;&#x8BBE;&#x7F6E;</li>
<li>&apos;ad.index.binding.changed&apos; &#x7ED1;&#x5B9A;&#x5BF9;&#x8C61;&#x53D8;&#x66F4;&#x4E8B;&#x4EF6;</li>
<li>&apos;ad.index.option.changed&apos; &#x914D;&#x7F6E;&#x7F16;&#x8F91;&#x5668;&#x66F4;&#x65B0;&#x4E8B;&#x4EF6;</li>
</ul>
</li>
<li>&#x5BF9;&#x4E8E;&#x81EA;&#x5B9A;&#x4E49;&#x5C5E;&#x6027;&#x7F16;&#x8F91;&#x5668;&#xFF0C;&#x6307;&#x6807;&#x7F16;&#x8F91;&#x7684;&#x5C5E;&#x6027;&#x53EF;&#x5B58;&#x50A8;&#x4E8E; $scope.optionOfIndex &#x6216; $scope.extendOfIndex &#x5185;&#xFF0C;&#x7531;&#x7F16;&#x8F91;&#x5668;&#x4FDD;&#x5B58;&#x65F6;&#x6301;&#x4E45;&#x5316;&#xFF0C;&#x5BF9;&#x5E94;&#x7684;&#x6307;&#x6807;&#x63D2;&#x4EF6;&#x6838;&#x5FC3;&#x903B;&#x8F91;&#x5E94;&#x6709;&#x76F8;&#x5E94;&#x7684;&#x5904;&#x7406;&#x89C4;&#x5219;&#xFF0C;&#x4EE5;&#x4FDD;&#x8BC1;&#x6307;&#x6807;&#x8FDB;&#x884C;&#x6B63;&#x5E38;&#x6E32;&#x67D3;&#x3002;</li>
<li>&#x5982;&#x4E0D;&#x6253;&#x7B97;&#x652F;&#x6301;&#x81EA;&#x5B9A;&#x4E49;&#x5C5E;&#x6027;&#x7F16;&#x8F91;&#x5668;&#xFF0C;&#x53EF;&#x5C06;&#x6307;&#x6807;&#x6E05;&#x5355;&#x6587;&#x4EF6;<code>manifest.json</code>&#x4E2D;&#x5BF9;&#x5E94;&#x7684;&#x8BBE;&#x7F6E;&#x79FB;&#x9664;&#x6216;&#x7F6E;&#x7A7A;&#x3002;</li>
</ul>
<p>&#x5BF9;&#x4E8E;&#x81EA;&#x5B9A;&#x4E49;&#x5C5E;&#x6027;&#x7F16;&#x8F91;&#x5668;&#x7684;&#x5B9E;&#x73B0;&#x65B9;&#x5F0F;&#xFF0C;&#x4E0D;&#x505A;&#x8FC7;&#x591A;&#x7684;&#x89E3;&#x91CA;&#xFF0C;&#x5177;&#x4F53;&#x53EF;&#x53C2;&#x89C1;&#x9879;&#x76EE;&#x4E2D;&#x7684;&#x4EE3;&#x7801;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="explain-property1.html" class="navigation navigation-prev " aria-label="Previous page: 指标通用属性">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="explain-event.html" class="navigation navigation-next " aria-label="Next page: 指标钻取事件">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"指标自定义属性","level":"1.3.3","depth":2,"next":{"title":"指标钻取事件","level":"1.3.4","depth":2,"path":"explain-event.md","ref":"explain-event.md","articles":[]},"previous":{"title":"指标通用属性","level":"1.3.2","depth":2,"path":"explain-property1.md","ref":"explain-property1.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"explain-property2.md","mtime":"2018-08-30T06:34:35.403Z","type":"markdown"},"gitbook":{"version":"3.0.0","time":"2018-08-30T06:38:59.990Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/buttons.js"></script>
        
    

    </body>
</html>

